package com.aspire.boc.mms.wmf.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 本地权限数据实体
 * @author zhanghao
 *
 */
public class SecurityData implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3737878137109714049L;

	private List<SecurityUser> users;
	
	private List<SecurityGroup> groups;
	
	private List<SecurityGroupUserRelation> groupUserRelations;
	
	private Map<String, SecurityUser> userMap;
	
	private Map<Integer, SecurityGroup> groupMap;
	
	private Map<String, List<SecurityGroup>> userGroupMap;

	public List<SecurityUser> getUsers() {
		return users != null ?  users : new ArrayList<SecurityUser>(0);
	}

	public void setUsers(List<SecurityUser> users) {
		this.users = users;
	}

	public List<SecurityGroup> getGroups() {
		return groups != null ? groups : new ArrayList<SecurityGroup>(0);
	}

	public void setGroups(List<SecurityGroup> groups) {
		this.groups = groups;
	}

	public List<SecurityGroupUserRelation> getGroupUserRelations() {
		return groupUserRelations != null ? groupUserRelations  : new ArrayList<SecurityGroupUserRelation>(0);
	}

	public void setGroupUserRelations(List<SecurityGroupUserRelation> groupUserRelations) {
		this.groupUserRelations = groupUserRelations;
	}

	public Map<String, SecurityUser> getUserMap() {
		return userMap != null ? userMap :  new HashMap<String, SecurityUser>(0);
	}

	public void setUserMap(Map<String, SecurityUser> userMap) {
		this.userMap = userMap;
	}

	public Map<String, List<SecurityGroup>> getUserGroupMap() {
		return userGroupMap != null ? userGroupMap : new HashMap<String, List<SecurityGroup>>(0);
	}

	public void setUserGroupMap(Map<String, List<SecurityGroup>> userGroupMap) {
		this.userGroupMap = userGroupMap;
	}

	public Map<Integer, SecurityGroup> getGroupMap() {
		return groupMap != null ? groupMap : new HashMap<Integer, SecurityGroup>(0);
	}

	public void setGroupMap(Map<Integer, SecurityGroup> groupMap) {
		this.groupMap = groupMap;
	}
	
}
